Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[editor] Change URL query for pagination #607

Merged
merged 1 commit into from
Sep 11, 2023
Merged

Conversation

cmoinier
Copy link
Collaborator

@cmoinier cmoinier commented Sep 4, 2023

Issue

The current page should appear in the current route as a query param like "&page=X"

Resolution

Most changes were adressed in #605 , e2e test is added here.

To test

Go to /records/all in metadata-editor app and switch pages around.

@cmoinier cmoinier requested a review from jahow September 4, 2023 15:49
@github-actions
Copy link
Contributor

github-actions bot commented Sep 4, 2023

Affected libs: , Affected apps: ,

  • 🚀 Build and deploy storybook and demo on GitHub Pages
  • 📦 Build and push affected docker images

@fgravin fgravin changed the title Metadata-editor : Change URL query for pagination [editor] Change URL query for pagination Sep 5, 2023
Copy link
Collaborator

@jahow jahow left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, the test fails because apparently there's an undefined alias in there, that looks unintentional I think? Anyways the structure is good 🙂 We have the issue now that the local docker composition contains less than 15 datasets and so there is only one page available, but this will change soon I think so we can leave the test like that.

apps/metadata-editor-e2e/src/e2e/dashboard.cy.ts Outdated Show resolved Hide resolved
@cmoinier
Copy link
Collaborator Author

Thanks for the review. It should be working now (with enough records) !

Copy link
Collaborator

@jahow jahow left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks! At some point we'll have to show the service records as well, so that will fix the issue of the page count :)

@cmoinier cmoinier merged commit 2fb296c into main Sep 11, 2023
@cmoinier cmoinier deleted the ME/pagination-url branch September 11, 2023 11:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants